package com.lxh.lxhcrm.model.pojos;

import javax.persistence.*;
import java.util.List;

/**
 * 属性表
 */
@Entity
public class Attribute {
    private int attrId;
    private String attrName;

    private List<Ability> ability;

    @OneToMany(mappedBy = "attribute")
    public List<Ability> getAbility() {
        return ability;
    }

    public void setAbility(List<Ability> ability) {
        this.ability = ability;
    }

    @Id
    @Column(name = "attr_id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public int getAttrId() {
        return attrId;
    }

    public void setAttrId(int attrId) {
        this.attrId = attrId;
    }

    @Basic
    @Column(name = "attr_name", nullable = true, length = 40)
    public String getAttrName() {
        return attrName;
    }

    public void setAttrName(String attrName) {
        this.attrName = attrName;
    }

}
